package com.bdqn.zhang.mapper;

import com.bdqn.zhang.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User login(@Param("username") String username, @Param("password") String password);

    Long addSave(User user);

    List<User> getAll(@Param("from") Long from, @Param("pageSize") Long pageSize);

    Long count();
}
